/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * LogInPSWP.java
 *
 * Created on 2012-6-26, 22:39:35
 */

package icexam.user;

import icexam.dao.PSWDao;

/**
 *
 * @author Ethan
 */
public class ModifyLogInPSWP extends javax.swing.JPanel {

    /** Creates new form LogInPSWP */
    public ModifyLogInPSWP() {
        initComponents();
        getLoginPsw();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jp1 = new javax.swing.JPanel();
        no1 = new javax.swing.JLabel();
        tf1 = new javax.swing.JTextField();
        bt1 = new javax.swing.JButton();
        jp2 = new javax.swing.JPanel();
        no2 = new javax.swing.JLabel();
        tf2 = new javax.swing.JTextField();
        bt2 = new javax.swing.JButton();
        jp3 = new javax.swing.JPanel();
        no3 = new javax.swing.JLabel();
        tf3 = new javax.swing.JTextField();
        bt3 = new javax.swing.JButton();
        jp4 = new javax.swing.JPanel();
        no4 = new javax.swing.JLabel();
        tf4 = new javax.swing.JTextField();
        bt4 = new javax.swing.JButton();
        jp5 = new javax.swing.JPanel();
        no5 = new javax.swing.JLabel();
        tf5 = new javax.swing.JTextField();
        bt5 = new javax.swing.JButton();
        jp6 = new javax.swing.JPanel();
        no6 = new javax.swing.JLabel();
        tf6 = new javax.swing.JTextField();
        bt6 = new javax.swing.JButton();
        jp7 = new javax.swing.JPanel();
        no7 = new javax.swing.JLabel();
        tf7 = new javax.swing.JTextField();
        bt7 = new javax.swing.JButton();
        jp8 = new javax.swing.JPanel();
        no8 = new javax.swing.JLabel();
        tf8 = new javax.swing.JTextField();
        bt8 = new javax.swing.JButton();
        jp9 = new javax.swing.JPanel();
        no9 = new javax.swing.JLabel();
        tf9 = new javax.swing.JTextField();
        bt9 = new javax.swing.JButton();
        jp10 = new javax.swing.JPanel();
        no10 = new javax.swing.JLabel();
        tf10 = new javax.swing.JTextField();
        bt10 = new javax.swing.JButton();
        jp11 = new javax.swing.JPanel();
        no11 = new javax.swing.JLabel();
        tf11 = new javax.swing.JTextField();
        bt11 = new javax.swing.JButton();
        jp12 = new javax.swing.JPanel();
        no12 = new javax.swing.JLabel();
        tf12 = new javax.swing.JTextField();
        bt12 = new javax.swing.JButton();
        jp13 = new javax.swing.JPanel();
        no13 = new javax.swing.JLabel();
        tf13 = new javax.swing.JTextField();
        bt13 = new javax.swing.JButton();
        jp14 = new javax.swing.JPanel();
        no14 = new javax.swing.JLabel();
        tf14 = new javax.swing.JTextField();
        bt14 = new javax.swing.JButton();
        jp15 = new javax.swing.JPanel();
        no15 = new javax.swing.JLabel();
        tf15 = new javax.swing.JTextField();
        bt15 = new javax.swing.JButton();
        jp16 = new javax.swing.JPanel();
        no16 = new javax.swing.JLabel();
        tf16 = new javax.swing.JTextField();
        bt16 = new javax.swing.JButton();

        setName("Form"); // NOI18N
        setLayout(new java.awt.BorderLayout());

        jPanel1.setName("jPanel1"); // NOI18N
        jPanel1.setPreferredSize(new java.awt.Dimension(350, 200));
        jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 10));

        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(icexam.ICExamApp.class).getContext().getResourceMap(ModifyLogInPSWP.class);
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N
        jLabel1.setPreferredSize(new java.awt.Dimension(600, 15));
        jPanel1.add(jLabel1);

        jp1.setName("jp1"); // NOI18N
        jp1.setPreferredSize(new java.awt.Dimension(300, 30));

        no1.setText(resourceMap.getString("no1.text")); // NOI18N
        no1.setName("no1"); // NOI18N
        no1.setPreferredSize(new java.awt.Dimension(20, 15));
        jp1.add(no1);

        tf1.setText(resourceMap.getString("tf1.text")); // NOI18N
        tf1.setName("tf1"); // NOI18N
        tf1.setPreferredSize(new java.awt.Dimension(150, 21));
        jp1.add(tf1);

        bt1.setText(resourceMap.getString("bt1.text")); // NOI18N
        bt1.setName("bt1"); // NOI18N
        bt1.setPreferredSize(new java.awt.Dimension(80, 23));
        bt1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt1ActionPerformed(evt);
            }
        });
        jp1.add(bt1);

        jPanel1.add(jp1);

        jp2.setName("jp2"); // NOI18N
        jp2.setPreferredSize(new java.awt.Dimension(300, 30));

        no2.setText(resourceMap.getString("no2.text")); // NOI18N
        no2.setName("no2"); // NOI18N
        no2.setPreferredSize(new java.awt.Dimension(20, 15));
        jp2.add(no2);

        tf2.setName("tf2"); // NOI18N
        tf2.setPreferredSize(new java.awt.Dimension(150, 21));
        jp2.add(tf2);

        bt2.setText(resourceMap.getString("bt2.text")); // NOI18N
        bt2.setName("bt2"); // NOI18N
        bt2.setPreferredSize(new java.awt.Dimension(80, 23));
        bt2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt2ActionPerformed(evt);
            }
        });
        jp2.add(bt2);

        jPanel1.add(jp2);

        jp3.setName("jp3"); // NOI18N
        jp3.setPreferredSize(new java.awt.Dimension(300, 30));

        no3.setText(resourceMap.getString("no3.text")); // NOI18N
        no3.setName("no3"); // NOI18N
        no3.setPreferredSize(new java.awt.Dimension(20, 15));
        jp3.add(no3);

        tf3.setName("tf3"); // NOI18N
        tf3.setPreferredSize(new java.awt.Dimension(150, 21));
        jp3.add(tf3);

        bt3.setText(resourceMap.getString("bt3.text")); // NOI18N
        bt3.setName("bt3"); // NOI18N
        bt3.setPreferredSize(new java.awt.Dimension(80, 23));
        bt3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt3ActionPerformed(evt);
            }
        });
        jp3.add(bt3);

        jPanel1.add(jp3);

        jp4.setName("jp4"); // NOI18N
        jp4.setPreferredSize(new java.awt.Dimension(300, 30));

        no4.setText(resourceMap.getString("no4.text")); // NOI18N
        no4.setName("no4"); // NOI18N
        no4.setPreferredSize(new java.awt.Dimension(20, 15));
        jp4.add(no4);

        tf4.setName("tf4"); // NOI18N
        tf4.setPreferredSize(new java.awt.Dimension(150, 21));
        jp4.add(tf4);

        bt4.setText(resourceMap.getString("bt4.text")); // NOI18N
        bt4.setName("bt4"); // NOI18N
        bt4.setPreferredSize(new java.awt.Dimension(80, 23));
        bt4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt4ActionPerformed(evt);
            }
        });
        jp4.add(bt4);

        jPanel1.add(jp4);

        jp5.setName("jp5"); // NOI18N
        jp5.setPreferredSize(new java.awt.Dimension(300, 30));

        no5.setText(resourceMap.getString("no5.text")); // NOI18N
        no5.setName("no5"); // NOI18N
        no5.setPreferredSize(new java.awt.Dimension(20, 15));
        jp5.add(no5);

        tf5.setName("tf5"); // NOI18N
        tf5.setPreferredSize(new java.awt.Dimension(150, 21));
        jp5.add(tf5);

        bt5.setText(resourceMap.getString("bt5.text")); // NOI18N
        bt5.setName("bt5"); // NOI18N
        bt5.setPreferredSize(new java.awt.Dimension(80, 23));
        bt5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt5ActionPerformed(evt);
            }
        });
        jp5.add(bt5);

        jPanel1.add(jp5);

        jp6.setName("jp6"); // NOI18N
        jp6.setPreferredSize(new java.awt.Dimension(300, 30));

        no6.setText(resourceMap.getString("no6.text")); // NOI18N
        no6.setName("no6"); // NOI18N
        no6.setPreferredSize(new java.awt.Dimension(20, 15));
        jp6.add(no6);

        tf6.setName("tf6"); // NOI18N
        tf6.setPreferredSize(new java.awt.Dimension(150, 21));
        jp6.add(tf6);

        bt6.setText(resourceMap.getString("bt6.text")); // NOI18N
        bt6.setName("bt6"); // NOI18N
        bt6.setPreferredSize(new java.awt.Dimension(80, 23));
        bt6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt6ActionPerformed(evt);
            }
        });
        jp6.add(bt6);

        jPanel1.add(jp6);

        jp7.setName("jp7"); // NOI18N
        jp7.setPreferredSize(new java.awt.Dimension(300, 30));

        no7.setText(resourceMap.getString("no7.text")); // NOI18N
        no7.setName("no7"); // NOI18N
        no7.setPreferredSize(new java.awt.Dimension(20, 15));
        jp7.add(no7);

        tf7.setName("tf7"); // NOI18N
        tf7.setPreferredSize(new java.awt.Dimension(150, 21));
        jp7.add(tf7);

        bt7.setText(resourceMap.getString("bt7.text")); // NOI18N
        bt7.setName("bt7"); // NOI18N
        bt7.setPreferredSize(new java.awt.Dimension(80, 23));
        bt7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt7ActionPerformed(evt);
            }
        });
        jp7.add(bt7);

        jPanel1.add(jp7);

        jp8.setName("jp8"); // NOI18N
        jp8.setPreferredSize(new java.awt.Dimension(300, 30));

        no8.setText(resourceMap.getString("no8.text")); // NOI18N
        no8.setName("no8"); // NOI18N
        no8.setPreferredSize(new java.awt.Dimension(20, 15));
        jp8.add(no8);

        tf8.setName("tf8"); // NOI18N
        tf8.setPreferredSize(new java.awt.Dimension(150, 21));
        jp8.add(tf8);

        bt8.setText(resourceMap.getString("bt8.text")); // NOI18N
        bt8.setName("bt8"); // NOI18N
        bt8.setPreferredSize(new java.awt.Dimension(80, 23));
        bt8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt8ActionPerformed(evt);
            }
        });
        jp8.add(bt8);

        jPanel1.add(jp8);

        jp9.setName("jp9"); // NOI18N
        jp9.setPreferredSize(new java.awt.Dimension(300, 30));

        no9.setText(resourceMap.getString("no9.text")); // NOI18N
        no9.setName("no9"); // NOI18N
        no9.setPreferredSize(new java.awt.Dimension(20, 15));
        jp9.add(no9);

        tf9.setName("tf9"); // NOI18N
        tf9.setPreferredSize(new java.awt.Dimension(150, 21));
        jp9.add(tf9);

        bt9.setText(resourceMap.getString("bt9.text")); // NOI18N
        bt9.setName("bt9"); // NOI18N
        bt9.setPreferredSize(new java.awt.Dimension(80, 23));
        bt9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt9ActionPerformed(evt);
            }
        });
        jp9.add(bt9);

        jPanel1.add(jp9);

        jp10.setName("jp10"); // NOI18N
        jp10.setPreferredSize(new java.awt.Dimension(300, 30));

        no10.setText(resourceMap.getString("no10.text")); // NOI18N
        no10.setName("no10"); // NOI18N
        no10.setPreferredSize(new java.awt.Dimension(20, 15));
        jp10.add(no10);

        tf10.setName("tf10"); // NOI18N
        tf10.setPreferredSize(new java.awt.Dimension(150, 21));
        jp10.add(tf10);

        bt10.setText(resourceMap.getString("bt10.text")); // NOI18N
        bt10.setName("bt10"); // NOI18N
        bt10.setPreferredSize(new java.awt.Dimension(80, 23));
        bt10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt10ActionPerformed(evt);
            }
        });
        jp10.add(bt10);

        jPanel1.add(jp10);

        jp11.setName("jp11"); // NOI18N
        jp11.setPreferredSize(new java.awt.Dimension(300, 30));

        no11.setText(resourceMap.getString("no11.text")); // NOI18N
        no11.setName("no11"); // NOI18N
        no11.setPreferredSize(new java.awt.Dimension(20, 15));
        jp11.add(no11);

        tf11.setName("tf11"); // NOI18N
        tf11.setPreferredSize(new java.awt.Dimension(150, 21));
        jp11.add(tf11);

        bt11.setText(resourceMap.getString("bt11.text")); // NOI18N
        bt11.setName("bt11"); // NOI18N
        bt11.setPreferredSize(new java.awt.Dimension(80, 23));
        bt11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt11ActionPerformed(evt);
            }
        });
        jp11.add(bt11);

        jPanel1.add(jp11);

        jp12.setName("jp12"); // NOI18N
        jp12.setPreferredSize(new java.awt.Dimension(300, 30));

        no12.setText(resourceMap.getString("no12.text")); // NOI18N
        no12.setName("no12"); // NOI18N
        no12.setPreferredSize(new java.awt.Dimension(20, 15));
        jp12.add(no12);

        tf12.setName("tf12"); // NOI18N
        tf12.setPreferredSize(new java.awt.Dimension(150, 21));
        jp12.add(tf12);

        bt12.setText(resourceMap.getString("bt12.text")); // NOI18N
        bt12.setName("bt12"); // NOI18N
        bt12.setPreferredSize(new java.awt.Dimension(80, 23));
        bt12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt12ActionPerformed(evt);
            }
        });
        jp12.add(bt12);

        jPanel1.add(jp12);

        jp13.setName("jp13"); // NOI18N
        jp13.setPreferredSize(new java.awt.Dimension(300, 30));

        no13.setText(resourceMap.getString("no13.text")); // NOI18N
        no13.setName("no13"); // NOI18N
        no13.setPreferredSize(new java.awt.Dimension(20, 15));
        jp13.add(no13);

        tf13.setName("tf13"); // NOI18N
        tf13.setPreferredSize(new java.awt.Dimension(150, 21));
        jp13.add(tf13);

        bt13.setText(resourceMap.getString("bt13.text")); // NOI18N
        bt13.setName("bt13"); // NOI18N
        bt13.setPreferredSize(new java.awt.Dimension(80, 23));
        bt13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt13ActionPerformed(evt);
            }
        });
        jp13.add(bt13);

        jPanel1.add(jp13);

        jp14.setName("jp14"); // NOI18N
        jp14.setPreferredSize(new java.awt.Dimension(300, 30));

        no14.setText(resourceMap.getString("no14.text")); // NOI18N
        no14.setName("no14"); // NOI18N
        no14.setPreferredSize(new java.awt.Dimension(20, 15));
        jp14.add(no14);

        tf14.setName("tf14"); // NOI18N
        tf14.setPreferredSize(new java.awt.Dimension(150, 21));
        jp14.add(tf14);

        bt14.setText(resourceMap.getString("bt14.text")); // NOI18N
        bt14.setName("bt14"); // NOI18N
        bt14.setPreferredSize(new java.awt.Dimension(80, 23));
        bt14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt14ActionPerformed(evt);
            }
        });
        jp14.add(bt14);

        jPanel1.add(jp14);

        jp15.setName("jp15"); // NOI18N
        jp15.setPreferredSize(new java.awt.Dimension(300, 30));

        no15.setText(resourceMap.getString("no15.text")); // NOI18N
        no15.setName("no15"); // NOI18N
        no15.setPreferredSize(new java.awt.Dimension(20, 15));
        jp15.add(no15);

        tf15.setName("tf15"); // NOI18N
        tf15.setPreferredSize(new java.awt.Dimension(150, 21));
        jp15.add(tf15);

        bt15.setText(resourceMap.getString("bt15.text")); // NOI18N
        bt15.setName("bt15"); // NOI18N
        bt15.setPreferredSize(new java.awt.Dimension(80, 23));
        bt15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt15ActionPerformed(evt);
            }
        });
        jp15.add(bt15);

        jPanel1.add(jp15);

        jp16.setName("jp16"); // NOI18N
        jp16.setPreferredSize(new java.awt.Dimension(300, 30));

        no16.setText(resourceMap.getString("no16.text")); // NOI18N
        no16.setName("no16"); // NOI18N
        no16.setPreferredSize(new java.awt.Dimension(20, 15));
        jp16.add(no16);

        tf16.setName("tf16"); // NOI18N
        tf16.setPreferredSize(new java.awt.Dimension(150, 21));
        jp16.add(tf16);

        bt16.setText(resourceMap.getString("bt16.text")); // NOI18N
        bt16.setName("bt16"); // NOI18N
        bt16.setPreferredSize(new java.awt.Dimension(80, 23));
        bt16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt16ActionPerformed(evt);
            }
        });
        jp16.add(bt16);

        jPanel1.add(jp16);

        add(jPanel1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void bt1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt1ActionPerformed
        doModify(tf1.getText(),1);
    }//GEN-LAST:event_bt1ActionPerformed

    private void bt2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt2ActionPerformed
        doModify(tf2.getText(),2);
    }//GEN-LAST:event_bt2ActionPerformed

    private void bt3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt3ActionPerformed
        doModify(tf3.getText(),3);
    }//GEN-LAST:event_bt3ActionPerformed

    private void bt4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt4ActionPerformed
        doModify(tf4.getText(),4);
    }//GEN-LAST:event_bt4ActionPerformed

    private void bt5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt5ActionPerformed
        doModify(tf5.getText(),5);
    }//GEN-LAST:event_bt5ActionPerformed

    private void bt6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt6ActionPerformed
        doModify(tf6.getText(),6);
    }//GEN-LAST:event_bt6ActionPerformed

    private void bt7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt7ActionPerformed
        doModify(tf7.getText(),7);
    }//GEN-LAST:event_bt7ActionPerformed

    private void bt8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt8ActionPerformed
        doModify(tf8.getText(),8);
    }//GEN-LAST:event_bt8ActionPerformed

    private void bt9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt9ActionPerformed
        doModify(tf9.getText(),9);
    }//GEN-LAST:event_bt9ActionPerformed

    private void bt10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt10ActionPerformed
        doModify(tf10.getText(),10);
    }//GEN-LAST:event_bt10ActionPerformed

    private void bt11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt11ActionPerformed
        doModify(tf11.getText(),11);
    }//GEN-LAST:event_bt11ActionPerformed

    private void bt12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt12ActionPerformed
        doModify(tf12.getText(),12);
    }//GEN-LAST:event_bt12ActionPerformed

    private void bt13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt13ActionPerformed
        doModify(tf13.getText(),13);
    }//GEN-LAST:event_bt13ActionPerformed

    private void bt14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt14ActionPerformed
        doModify(tf14.getText(),14);
    }//GEN-LAST:event_bt14ActionPerformed

    private void bt15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt15ActionPerformed
       doModify(tf15.getText(),15);
    }//GEN-LAST:event_bt15ActionPerformed

    private void bt16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt16ActionPerformed
       doModify(tf16.getText(),16);
    }//GEN-LAST:event_bt16ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bt1;
    private javax.swing.JButton bt10;
    private javax.swing.JButton bt11;
    private javax.swing.JButton bt12;
    private javax.swing.JButton bt13;
    private javax.swing.JButton bt14;
    private javax.swing.JButton bt15;
    private javax.swing.JButton bt16;
    private javax.swing.JButton bt2;
    private javax.swing.JButton bt3;
    private javax.swing.JButton bt4;
    private javax.swing.JButton bt5;
    private javax.swing.JButton bt6;
    private javax.swing.JButton bt7;
    private javax.swing.JButton bt8;
    private javax.swing.JButton bt9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jp1;
    private javax.swing.JPanel jp10;
    private javax.swing.JPanel jp11;
    private javax.swing.JPanel jp12;
    private javax.swing.JPanel jp13;
    private javax.swing.JPanel jp14;
    private javax.swing.JPanel jp15;
    private javax.swing.JPanel jp16;
    private javax.swing.JPanel jp2;
    private javax.swing.JPanel jp3;
    private javax.swing.JPanel jp4;
    private javax.swing.JPanel jp5;
    private javax.swing.JPanel jp6;
    private javax.swing.JPanel jp7;
    private javax.swing.JPanel jp8;
    private javax.swing.JPanel jp9;
    private javax.swing.JLabel no1;
    private javax.swing.JLabel no10;
    private javax.swing.JLabel no11;
    private javax.swing.JLabel no12;
    private javax.swing.JLabel no13;
    private javax.swing.JLabel no14;
    private javax.swing.JLabel no15;
    private javax.swing.JLabel no16;
    private javax.swing.JLabel no2;
    private javax.swing.JLabel no3;
    private javax.swing.JLabel no4;
    private javax.swing.JLabel no5;
    private javax.swing.JLabel no6;
    private javax.swing.JLabel no7;
    private javax.swing.JLabel no8;
    private javax.swing.JLabel no9;
    private javax.swing.JTextField tf1;
    private javax.swing.JTextField tf10;
    private javax.swing.JTextField tf11;
    private javax.swing.JTextField tf12;
    private javax.swing.JTextField tf13;
    private javax.swing.JTextField tf14;
    private javax.swing.JTextField tf15;
    private javax.swing.JTextField tf16;
    private javax.swing.JTextField tf2;
    private javax.swing.JTextField tf3;
    private javax.swing.JTextField tf4;
    private javax.swing.JTextField tf5;
    private javax.swing.JTextField tf6;
    private javax.swing.JTextField tf7;
    private javax.swing.JTextField tf8;
    private javax.swing.JTextField tf9;
    // End of variables declaration//GEN-END:variables

    private void getLoginPsw() {
        PSWDao pdao = new PSWDao();
        String[] arrayStr = pdao.getLoginPsw();
        if(arrayStr!=null&&arrayStr.length==16){
            tf1.setText(arrayStr[0]);
            tf2.setText(arrayStr[1]);
            tf3.setText(arrayStr[2]);
            tf4.setText(arrayStr[3]);
            tf5.setText(arrayStr[4]);
            tf6.setText(arrayStr[5]);
            tf7.setText(arrayStr[6]);
            tf8.setText(arrayStr[7]);
            tf9.setText(arrayStr[8]);
            tf10.setText(arrayStr[9]);
            tf11.setText(arrayStr[10]);
            tf12.setText(arrayStr[11]);
            tf13.setText(arrayStr[12]);
            tf14.setText(arrayStr[13]);
            tf15.setText(arrayStr[14]);
            tf16.setText(arrayStr[15]);
        }
        
    }

    private void doModify(String tmp,int i) {
        PSWDao pdao = new PSWDao();
//         = tf1.getText();
        if(tmp==null||tmp.equals("")){
            javax.swing.JOptionPane.showMessageDialog(this, "请正确输入口令！");
            return;
        }
        pdao.changeUserRightPSW(tmp,i);
        javax.swing.JOptionPane.showMessageDialog(this, "修改成功！");
    }

}
